import $http from './http';
import store from '@/store';

//-------导出登录函数----------
export const login = (data:any) => $http(
    {
        url:"/login",
        method:'post',
        data:data
    }
)
//------获取用户的权限，通常是用 token 去获取-------
export const getMenu = () => $http(
    {
        url:"/getMenu",
        method:'post',
        data:{
            tonken:store.state.UserToken,
        }
    }
)